package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.PlatformPaymentParameterDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

/**
 * 平台支付参数设置Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-12
 */
@Repository
public interface PlatformPaymentParameterRepository extends JpaRepository<PlatformPaymentParameterDO, Long>, JpaSpecificationExecutor<PlatformPaymentParameterDO>, QuerydslPredicateExecutor<PlatformPaymentParameterDO> {
    PlatformPaymentParameterDO findFirstByPayTypeAndPayChannel(Integer payType, Integer payChannel);
}
